#!/bin/sh

if [ -z "$1" ]; then
  echo "Usage: $0 <http-request-file>"
  exit 1
fi

export IJHTTP_JAVA_OPTS="-Xmx512m"

java $IJHTTP_JAVA_OPTS -cp "/intellij-http-client/*" "com.intellij.httpClient.cli.HttpClientMain" --env-file http-client.env.json --env docker -L VERBOSE "$1" --report | tee -a reports/report.log
